package com.xhx.vo;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import lombok.Data;

/**
 * 通用查询参数-分页查询参数
 * 
 * @author xhx
 */
@Data
public class PageInfoParam<T> {

	/**
	 * 页码
	 */
	@Min(value = 1L, message = "页码最小为1")
	@NotNull(message = "页码不能为空")
	private Integer pageNo = 1;

	/**
	 * 页条数
	 */
	@Min(value = 1L, message = "页条数最小为1")
	@NotNull(message = "页条数不能为空")
	private Integer pageSize = 10;

	/**
	 * 其他参数
	 */
	private @Valid T param;

}